package com.suxiaoxiao.springbootlearn.designpattern.compoundpattern.factory;

import com.suxiaoxiao.springbootlearn.designpattern.compoundpattern.Quackable;

/**
 * 鸭子抽象工厂
 * @author 、
 */
public abstract class AbstractDuckFactory {

    /**
     * 创建绿头鸭
     * @return
     */
    public abstract Quackable createMallardDuck();

    /**
     * 创建红头鸭
     * @return
     */
    public abstract Quackable createRedheadDuck();

    /**
     * 创建鸭鸣器
     * @return
     */
    public abstract Quackable createDuckCall();

    /**
     * 创建橡皮鸭
     * @return
     */
    public abstract Quackable createRubberDuck();

}
